import request from "@/utils/request";

// 获取列表
export function getAllList(query) {
  return request({
    url: "/matManage/getPage",
    method: "get",
    params: query,
  });
}

// 保存
export function saveData(data) {
  return request({
    url: "/matManage/save",
    method: "post",
    data:data
  });
}

// 修改
export function updateData(data) {
  return request({
    url: "/matManage/update",
    method: "post",
    data:data
  });
}

// 查看
export function getDetail(id) {
  return request({
    url: "/matManage/findById",
    method: "get",
    params:id
  });
}

// 获取地震指挥部信息编号
export function getHeadCode(code) {
  return request({
    url: "/matManage/getMaterialInfo",
    method: "get",
    params:code
  });
}

//删除
export function del(id) {
  return request({
    url: "/matManage/delete/" + id,
    method: "post",
  });
}
// 导入
export function importExcel(data) {
  return request({
    url: "/matManage/importExcel",
    method: "post",
    data:data
  });
}